package com.wxlsoft.config.model;

import com.fasterxml.jackson.databind.JsonNode;

import cn.hutool.core.lang.UUID;
import lombok.Data;

@Data
public class EsbResult {

	private int code;

	private JsonNode data;
	
	private String msg;
	
	private boolean success;
	
	public boolean success() {
		return success;
	}
	
	public String token() {
		return data.get("accessToken").asText();
	}
	
	public static void main(String[] args) {
		System.out.println(UUID.fastUUID().toString(true));
	}
	
}
